From 6315efacd6212a347877102a68f430fffa4ca4ac Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 10 Jan 2022 18:17:40 +0100 Subject: refactor(sidebar): use a component to avoid styles repetition I also fix some overflow/sticky issues. I have to set overflow auto only when there is no button-like links otherwise, with translate, the button is cropped on hover. --- src/pages/article/[slug].tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pages/article/[slug].tsx') diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index 7d25843..fb79b41 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -18,6 +18,7 @@ import { ParsedUrlQuery } from 'querystring'; import { useEffect } from 'react'; import styles from '@styles/pages/Page.module.scss'; import { Sharing } from '@components/Widget'; +import Sidebar from '@components/Sidebar/Sidebar'; const SingleArticle: NextPageWithLayout = ({ post }) => { const { @@ -67,9 +68,9 @@ const SingleArticle: NextPageWithLayout = ({ post }) => { dangerouslySetInnerHTML={{ __html: content }} > - +
-- cgit v1.2.3